﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class ChatPanel : UIBase
{
    Button backBtn;

    void Awake()
    {
        backBtn = this.transform.Find("BackBtn").GetComponent<Button>();
        backBtn.onClick.AddListener(OnBackClick);
    }

    private void OnBackClick()
    {
        UIManager.Instance.Close<ChatPanel>();
    }
}
